﻿@model SGC_CarteraClientes.Models.CA_PROSPECTO

@{
    ViewBag.Title = "Create";
}

<h2>Nuevo Prospecto</h2>
<hr />

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>CA_PROSPECTO</legend>


        <div class="editor-label">
        @Html.Label("Apellido Paterno")        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PROSP_APPAT)
            @Html.ValidationMessageFor(model => model.PROSP_APPAT)
        </div>

        <div class="editor-label">
            @Html.Label("Apellido Materno")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PROSP_APMAT)
            @Html.ValidationMessageFor(model => model.PROSP_APMAT)
        </div>

        <div class="editor-label">
             @Html.Label("Nombres")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PROSP_NOMS)
            @Html.ValidationMessageFor(model => model.PROSP_NOMS)
        </div>

        <div class="editor-label">
              @Html.Label("Teléfono")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PROSP_TELF)
            @Html.ValidationMessageFor(model => model.PROSP_TELF)
        </div>

        <div class="editor-label">
            @Html.Label("Dirección")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PROSP_DIRE)
            @Html.ValidationMessageFor(model => model.PROSP_DIRE)
        </div>

          
        <div class="editor-label">
             @Html.Label("Tipo Documento")
        </div>
                 <div class="editor-field">
            @{ 
   List<SelectListItem> li_tdoc= new List<SelectListItem>();
   li_tdoc.Add(new SelectListItem
        {
          Text = "DNI",
          Value = "01"
        });
   li_tdoc.Add(new SelectListItem
        {
            Text = "RUC",
            Value = "01",
            Selected = true
        });
   li_tdoc.Add(new SelectListItem
   {
       Text = "CE",
       Value = "03"
   });
   li_tdoc.Add(new SelectListItem
        {
            Text = "Otro",
            Value = "99"
        });
    }
        
        @Html.DropDownListFor(model => model.PROSP_TDOC,  (li_tdoc))          
            @Html.ValidationMessageFor(model => model.PROSP_TDOC)
        </div>

        <div class="editor-label">
             @Html.Label("Nro Documento")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PROSP_NDOC)
            @Html.ValidationMessageFor(model => model.PROSP_NDOC)
        </div>

        
        <div class="editor-label">
             @Html.Label("Fecha Nacimiento")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PROSP_FNAC)
            @Html.ValidationMessageFor(model => model.PROSP_FNAC)
        </div>


        <div class="editor-label">
             @Html.Label("Correo electrónico")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PROSP_MAIL)
            @Html.ValidationMessageFor(model => model.PROSP_MAIL)
        </div>

         <div class="editor-label">
           @Html.Label("Empresa donde labora")
        </div>
        <div class="editor-field">
            @Html.DropDownList("PROSP_EMPID")
            @Html.ValidationMessageFor(model => model.PROSP_EMPID)                      
        </div>

        <div class="editor-label">
           @Html.Label("Sueldo promedio")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PROSP_SUEL)
            @Html.ValidationMessageFor(model => model.PROSP_SUEL)
        </div>

        <div class="editor-label">
            @Html.Label("Estado Civil")
        </div>
         <div class="editor-field">
            @{ 
   List<SelectListItem> listItems= new List<SelectListItem>();
   listItems.Add(new SelectListItem
        {
          Text = "Soltero",
          Value = "S"
        });
   listItems.Add(new SelectListItem
        {
            Text = "Casado",
            Value = "C",
            Selected = true
        });
   listItems.Add(new SelectListItem
   {
       Text = "Divorciado",
       Value = "D"
   });        
   listItems.Add(new SelectListItem
        {
            Text = "Viudo",
            Value = "V"
        });
    }
        
        @Html.DropDownListFor(model => model.PROSP_ESCV,  (listItems))          
            @Html.ValidationMessageFor(model => model.PROSP_ESCV)
        </div>

        <div class="editor-label">
           @Html.Label("Observaciones")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PROSP_OBSE)
            @Html.ValidationMessageFor(model => model.PROSP_OBSE)
        </div>


        <p>
            <input type="submit" value="Grabar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Cancelar", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    @Styles.Render("~/Content/themes/base/css")

}
